@import './common.less';
@import (less, optional) '//at.alicdn.com/t/font_1765260_5uixyxftf2c.css';

::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
}

.container {
  background: #fff;
}

.btn {
  color: #999;
  &:active {
    background: #005af9;
    color: #fff;
  }
}

.btn-primary {
  background: #005af9;
  color: #fff;
}

.home {
  &-gridItem {
    height: 200rpx;
    text-align: center;
    padding: 30rpx 0 0;
  }
  &-icon {
    font-size: 64rpx;
  }
  .title {
    color: #333;
  }
  .content {
    font-size: 28rpx;
    color: #666;
  }
}

.radio-cell {
  display: flex;
  flex-direction: row;
  font-size: 28rpx;
  color: #333;
  border-bottom: 1px solid #eee;
  height: 88rpx;
  align-items: center;
  padding: 0 30rpx;

  &-title {
    min-width: 130rpx;
    padding-right: 20rpx;
  }

  &-input {
    .radio-group {
      display: flex;
      label {
        display: flex;
        align-items: center;
        padding-right: 100rpx;
        radio {
          margin-right: 10rpx;
        }
      }
    }
  }
}

.tab-box {
  border-bottom: 1px solid #eee;
  .tab:nth-of-type(1) {
    border-right: 1px solid #eee;
  }
}

.cell-row {
  display: flex;
  align-items: center;
  height: 88rpx;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 28rpx;
  &-title {
    min-width: 130rpx;
    padding-right: 20rpx;
  }
}

.login {
  .forget-password {
    height: 88rpx;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    color: #005af9;
    font-size: 28rpx;
  }
}

.list-item {
  background: #fff;
  margin-top: 20rpx;
  &-header {
    display: flex;
    align-items: center;
    &-avatar {
      width: 80rpx;
      height: 80rpx;
      overflow: hidden;
      border-radius: 100%;
      border: 1px solid #eee;
    }

    &-userinfo {
      display: flex;
      justify-content: space-between;
      color: #888;
      font-size: 28rpx;
      height: 100rpx;
      flex: 1;
      margin-left: 20rpx;
      .username {
        display: flex;
        text:nth-of-type(2) {
          color: #196afb;
        }
      }
      .subtitle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text:nth-of-type(1) {
          font-size: 28rpx;
          color: #196afb;
        }
        text:nth-of-type(2) {
          font-size: 24rpx;
          color: #999999;
        }
      }
      .status {
        display: flex;
        align-items: center;
        color: #196afb;
        font-size: 24rpx;
      }
    }
  }

  &-content {
    .image-box {
      margin-top: 20rpx;
      display: flex;
      justify-content: space-between;
      padding-left: 100rpx;
      image {
        width: 32%;
        height: 150rpx;
      }
    }
    &-desc {
      color: #333;
      padding-left: 100rpx;
      font-size: 30rpx;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
    }
    .answer-content {
      -webkit-line-clamp: 30;
    }
    &-icons {
      padding-left: 100rpx;
      display: flex;
      justify-content: space-between;
      color: #666;
      font-size: 24rpx;
      height: 60rpx;
      align-items: center;
      margin-top: 20rpx;
      .icon-item {
        display: flex;
        justify-content: space-between;
        text:nth-of-type(1) {
          margin-right: 10rpx;
        }
      }
      .add-btns {
        background: #196afb;
        color: #fff;
        padding: 0 20rpx;
        border-radius: 8rpx;
        height: 50rpx;
        line-height: 50rpx;
        display: flex;
        align-items: center;
        .iconfont {
          font-size: 28rpx;
        }
      }
    }
  }
}

.block-title {
  height: 80rpx;
  display: flex;
  align-items: center;
  color: #196afb;
  font-size: 28rpx;
  padding: 0 20rpx;
}
.comment-box {
  margin-top: 30rpx;
  min-height: 60rpx;
  background: #e5e5e5;
  border-radius: 40rpx;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  textarea {
    flex: 1;
    padding: 20rpx;
    font-size: 28rpx;
  }
  button{
    overflow: hidden;
    height: 75rpx;
    font-size: 28rpx;
    line-height: 75rpx;
  }
}

.loading-more {
  height: 60rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28rpx;
  color: #186afb;
  padding-top: 40rpx;
}

.training {
  &-banenr {
    position: relative;
    height: 350rpx;
    &-modal {
      background: #005af9;
      height: 250rpx;
      border-radius: 0 0 50% 50%;
    }
    image {
      width: calc(~'100% - 40rpx');
      height: 300rpx;
      margin: 0 20rpx;
      position: absolute;
      top: 20rpx;
      left: 0;
    }
  }
  &-categroy {
    display: flex;
    justify-content: space-between;
    padding: 0 20rpx;
    &-item {
      width: 25%;
      display: flex;
      flex-direction: column;
      align-items: center;
      &-icon {
        width: 140rpx;
        height: 140rpx;
        background: #fff;
        border-radius: 100%;
        margin-bottom: 10rpx;
      }
      text {
        color: #333;
        font-size: 28rpx;
      }
    }
  }

  &-recommend {
    margin-top: 20rpx;
    &-title {
      font-size: 32rpx;
      color: #333;
      height: 40rpx;
      display: flex;
      align-items: center;
      border-left: 8rpx solid #0059f9;
      padding-left: 20rpx;
    }

    &-item {
      margin-top: 10rpx;
      .title {
        color: #333;
        font-size: 28rpx;
        line-height: 40rpx;
        padding: 20rpx 0;
      }
      .image-box {
        display: flex;
        justify-content: space-between;
        image {
          width: 32%;
          height: 150rpx;
        }
      }
      .media-box {
        image {
          width: 100%;
          height: 350rpx;
        }
      }
    }
  }
}

.home {
  &-swiper {
    margin: 20rpx;
    image {
      width: 100%;
      height: 100% !important;
      border-radius: 16rpx;
    }
  }
  &-top-content {
    position: relative;
    min-height: 100vh;
    padding-bottom: 50rpx;
    image {
      width: 100%;
    }

    &-fixed {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;

      .header-title {
        height: 140rpx;
        line-height: 140rpx;
        color: #fff;
        text-align: center;
        text {
          font-size: 40rpx;
          font-weight: bold;
        }
      }

      .list-item {
        background: none;
        margin-top: 0;
        padding: 0 20rpx;

        &-header-userinfo {
          .subtitle {
            text {
              color: #fff;
            }
          }
        }
      }
    }
  }
  .short-nav {
    display: flex;
    justify-content: space-between;
    margin: 0 15rpx;
    padding-top: 20rpx;
    &-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      font-size: 26rpx;
      color: #333;
      width: 25%;
      image {
        width: 90rpx;
        height: 90rpx;
      }
      text {
        height: 80rpx;
        line-height: 80rpx;
      }
    }
  }
  .question-content {
    margin: 0 20rpx;
    background: #fff;
    border-radius: 16rpx;
    .header {
      font-size: 30rpx;
      color: #333;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 60rpx;
      padding: 20rpx 0;
      .text-box {
        padding: 0 30rpx;
      }
      &::before,
      &::after {
        content: '';
        display: block;
        width: 160rpx;
        height: 2rpx;
        background: #4981e9;
      }
    }

    &-list {
      display: flex;
      flex-flow: wrap;
      justify-content: space-between;
      margin-bottom: 20rpx;
    }
    &-item {
      width: 25%;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 20rpx;
      image {
        width: 59rpx;
        height: 54rpx;
      }
      text {
        font-size: 24rpx;
        color: #333;
        height: 60rpx;
        line-height: 60rpx;
      }
    }
  }
  scroll-view {
    min-height: 100vh;
  }
  .notice-container {
    height: 44rpx;
    margin: 20rpx;
    padding: 20rpx;
    background: #fff;
    border-radius: 16rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .notice-header-title {
      font-size: 32rpx;
      color: #333;
      font-weight: bold;
      text:nth-of-type(2) {
        color: #f00;
      }
      flex: 2;
    }

    .notice-content {
      font-size: 24rpx;
      color: #666;
      flex: 5;
    }

    .swiper_container {
      height: 44rpx;
    }

    .swiper_item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      view {
        font-size: 26rpx;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 44rpx;
      }
    }
  }
}

.form-contaienr {
  .form-cell {
    &-title,
    &-input,
    &-input input {
      height: 70rpx;
      line-height: 70rpx;
      color: #333;
    }
    &-title {
      font-size: 30rpx;
    }
    &-input {
      background: #e5e5e5;
      padding: 0 20rpx;
      border-radius: 8rpx;
      color: #666;
      font-size: 28rpx;

      picker,
      input {
        color: #666;
        font-size: 28rpx;
      }
    }
    &-textarea {
      height: 200rpx;
      background: #e5e5e5;
      padding: 20rpx;
      border-radius: 8rpx;
      textarea {
        width: 100%;
        height: 200rpx;
        font-size: 28rpx;
        color: #666;
      }
    }
  }
}
